﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Tunneler.Tools;

using Microsoft.Xna.Framework;

namespace Tunneler {
    abstract class PowerUp {
        Cooldown counter;

        protected double length;

        public double Length { get { return length; } }

        public bool Activated { get { return counter != null; } }

        public void Activate(GameTime gameTime) {
            counter = new Cooldown(gameTime, Length);
            counter.Use();
        }

        public bool Finnished() {
            return counter == null || counter.IsCool();
        }
    }
}
